/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function getCollision(a, b) {
    if ((a.pos.X-a.size/2) > (b.pos.X+b.size/2) ||
        (a.pos.X+a.size/2) < (b.pos.X-b.size/2) ||
        (a.pos.Y) < (b.pos.Y-b.size) ||
        (a.pos.Y-a.size) > (b.pos.Y)) {
        return false;
        } else return true;
}

function getCollision2(a, b) {
    return "|a "+ (a.pos.X-a.size/2) +" b| "+ (b.pos.X+b.size/2) +" a| "+
        (a.pos.X+a.size/2) +" |b "+ (b.pos.X-b.size/2) +" _a_ "+
        (a.pos.Y) +" ^b^ "+ (b.pos.Y-b.size) +" ^a^ "+
        (a.pos.Y-a.size) +" _b_ "+ (b.pos.Y);
}
